//输出下列代码，探求String的方法。
public class SE3_7
{
  public static void main(String []args)
  {
    String s1 = "Foundations";
    String s2;
    System.out.println(s1.charAt(1));
    s2 = s1.substring(0, 5);
    System.out.println(s2);
    System.out.println(s1.length());
    System.out.println(s2.length());
    }
  }
    
